package com.seehack.sample.spring.extension.feign;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class SpringFeignSample {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext
                context = new AnnotationConfigApplicationContext();
        context.register(ConfigScan.class);
        context.refresh();
        Github github = context.getBean(Github.class);
        String result = github.contributors("netflix","feign");
        System.out.println(result);
    }

    @FeignInvokerScan(basePackages = "com.seehack.sample.spring.extension.feign")
    static class ConfigScan {}
}
